What are the chances?

If I haven’t had a period in a few months, but had sex a few days ago could I still get pregnant? I keep seeing that no period means no ovulation, so I’m kind of confused.