should I test?

its been 4 weeks since I've had unprotected sex and I am starting to notice I am peeing more frequently. should I take a pregnancy test?