Dear @Bossbig, 
Welcome back to the Wefugees Community and thank you for your question! 
Yes, sure! The sexual orientation doesn’t play a role in that sense and the registry office won’t ask about this for the wedding procedure - it’s a private matter. Since 2017 same sex-marriage is possible in Germany as well. 
I hope this answers your question and please don’t hesitate to get back to us. 
All the best, 
Meike