Irregular use of birth control

Patient: I only see my boyfriend for a total of few months every year (this is spread out throughout the year). Next month, he is coming to visit for a few weeks. I would like to go on birth control, just for this month. I used to be on birth control regularly, but stopped about two years ago after starting to date him and seeing him so infrequently. Can I just start using it now to protect me for next month when he comes, and go off of it again after next month?