No, it doesn't cause pregnancy, but please make sure to learn about safe practices. I used to worry about everything too, but biologically this is impossible.
Pregnancy only happens when sperm meets an egg in the fallopian tubes through vaginal intercourse. Swallowing cannot cause pregnancy, as confirmed by doctors.