Don’t let that, or anything, stop you if you have feelings for someone. Make your intentions known and take the risk. Worst case scenario is you get rejected and can move on knowing that you tried.
This is what I’ve experienced also. A lot of my friends of the opposite sex are people I’ve dated in the past, broken up with, didn’t talk to for months or years, and then became friends again after the dust settled.