Do you know Kento Yamazaki?
No it is not bad if you fall in love with your friend but only if he is your best friend because your partner in life is supposed to be your best friend.
Now if he is your friend and in a relationship with another woman or whoever, then that is just wrong.
Sidenote: If your friend is dating your best friend then that is even more wrong.
Hope that helps!