It can, but it depends on when you insert the ring. Putting the ring in on the first day of your period will ensure you’re protected from becoming pregnant.
If you’re switching from another form of hormonal birth control, you need to make sure you don’t have any coverage gaps before starting the ring. Leaving a gap will mean you aren’t protected.