Pill pregnancy

Has anyone ever gotten pregnant while being on the pill ? If so how did you find out you were pregnant ?