How to have sex without getting pregnant?

Hi it’s my first time to have sex, I’m currently on the pill for 11 months now. Do you have any advice when it comes to not getting pregnant? Is there a best day to have sex while on the pill? I don’t wanna get pregnant but I also wanna have sex.