Pill question!!!

Hiya i know to some people this may be a strange question but can you have sex & nine/ten days later get a period but still be pregnant? I know it may seem like a no brainier but I was just curious x