Need answers!

Is it okay to have unprotected sex on the pill if you’ve been on it a couple of months and take the pill everyday?