Yes, there is a possibility of getting pregnant if you have unprotected sex.
It may only take one instance of unprotected sex to become pregnant. Therefore, It is important to use contraception to reduce the chances of getting pregnant or spreading sexually transmitted infections.
There are various methods of contraception, so discuss your personal needs and options with your healthcare provider.