Random question

Roisin • POSITIVE VIBES ONLY!! ✌🏻️
If you are taking the pill, can a pregnancy test still detect if you are pregnant or not?