Sex without mum knowing

My mum doesn't know I have had sex, but she has offered to come with me to the doctors to put me on the pill. When I get the pill, will the doctors know that I have already had sexual intercourse and tell my mum? Or would there be no reason for them to tell her. 
Thank you