However, it has to be actual wages, i.e., the founder has to do work in return for a salary, and the salary has to be reasonable. You can't just have the GmbH pay you back the money you put into the company. There are also other limitations (https://dejure.org/gesetze/GmbHG/30.html), but that's the main one.