Spirit cannot be placed in a box called “moral code”. It’s bigger than that and doesn't operate according to limited human beliefs or expectations! It may, in fact, compel us to do things that other people would say are wrong or inappropriate. And yet, if we believe spirit is calling and we have become obedient to the call (realizing it comes from a larger, wiser part of ourselves) then we must obey, whether it makes us look foolish or not!
For more information on this topic I recommend the Heart of Jesus series of books by Kim Michaels.