Hello @Joycebaby
Nice to hear from you again.
It's not necessary to be employed in order to marry. See the first paragraph in my answer in this thread:
https://***.wefugees.de/801193/can-get-married-in-germany-if-my-future-husband-is-unemployed
However, the residence permit will only be granted when authorities believe that you are actually living together as a married couple. For this reason it would make sense to live in the same apartment which can be difficult if it's just one room.
I can't tell you whether you will be granted a residence permit right away or if you have to return to Ghana and come back with a proper visa. It depends on your individual case.
Best regards,
Thorgen