It would make sense.
Endorphin release would calm the nerves and make you feel better.
But I haven't done it. I've had the same GF for the 2.5 years that I've been seriously riding.
Besides, why ride to forget a girl? That's what whisky and hookers were invented for. Don;t you know anything?