Of course. That doesn’t rule out sex within a sanctified marriage to her husband Joseph.
It did if she vowed it and St. Joseph was a righteous and upright man.