Why Nobody Asks If Men Can Be Friends with Men
The question is a screen. The asker is hiding from the specific case.
Cross-gender friendship is possible in the abstract. In your specific case, the fact that you are asking the abstract version tells me you already know more than you are letting on about the personal one.