Period question

This may be a stupid question idk. But I’ve been wondering, if you are taking the pill, on your period does the uterus still shed its lining?

Thanks!