When should I take a pregnancy test?

Can you take a pregnancy test before your missed period (while on bc pills) or is it better to wait for the missed period ??