period but pregnant ?

Can you have your “period” on the pill but be pregnant? My last withdrawal bleed was heavy at first but then got light and seemed shorter than the rest. Could I be pregnant?