Of course a man and a woman can be friends, no plot twist there. The only time it goes sideways is when someone’s running a hidden agenda. If your intentions aren’t clean, don’t call it friendship, you’re just setting yourself up for disappointment.
Personally, I’ve got plenty of female friends...