Yea the virgin thing is right. Several years ago science figured out that some women could produce a child without a mate. I cant remember if joesph and mary were actually married at the time.
A supernatural miraculous conception isn't the breaking of a marriage covenant. God's laws reflect his perfect character - he can't do anything sinful.