Does getting a dog spayed stop her from bleeding when in heat?

I have never had a female dog before and we are getting her spayed next month.