Prevent pregnancy

ra
Is there anything that can prevent you from being pregnant after like a few weeks ?