Absolutely, a guy and girl can go on vacation as friends. For everyone’s comfort, make sleeping arrangements clear before heading out on the trip and clarify your expectations for the getaway.
If you’re traveling to very conservative countries where staying together as friends may be frowned upon, you may want to book separate hotel rooms.