Does blocking a player do anything?

I have been playing and this one person I’ve been in at least 3 matches with today keeps making inappropriate misogynistic jokes. I’ve tried to wait awhile before playing another game but somehow got matched to this player again. The jokes are very uncomfortable and if wondering if blocking the player does anything like remove him from ever being in a match with me again.