If you get attracted to anyone is because they are also sending the same energy?

Many a tome it happens if I am attracted to someone the other person also gets attracted to me. if a person is even out of reach somehow he starts to show affection. There were 3 guys in my past I never imagined they would like me back because they were hard to reach due to some reasons, but they did. I have this dentist who I have been visiting for more than 6 years and is damn cute. I had a crush on this guy 6 years ago, and I had never thought this guy would flirt with me someday. Even now secretly I was crushing on him and was wondering he will ever get attracted to me. And boom he started flirting with me like anything.
If you get attracted to anyone is because they are also sending the same energy?
Post Opinion