BIRTH CONTROL IMPLANT

for birth control i currently have the implant in my arm. i used to get my period although it was very irregular. but now it’s been 40 days & i haven’t gotten a period . i know some girls stop getting their period when they get the implant . but i’ve been having a lot of unprotected sex the past 3 months. and i would crave certain foods at a weird time of day. should i take a pregnancy test? & what’ll happen to the baby since i have the implant ?