Birth control

I switched to Yasmin birth control in the middle of this month and I haven't gotten my period at all & the month is almost over is it cause I changed my pills ? Also had unprotected sex