Hah I knew a few Ashley's in my youth of both gendersThere's no rule about it.
But please think of the child and how he or she would have to deal with the name.
Even though androgeny is hip today, it's unlikely to survive the wars following the CoronaCrash.
It would be awful for a male child to have a traditionally female name like Susan, Phoebe or Brunhilda.
Likewise, giving a daughter her father's name is cruel and unusual, especially if his name is Adolf, Donald, or even Percival.
You should also think about which surname to use.