Welcome back to the Wefugees community and thank you for reaching out to us again.
I agree with @David123: a job is not granting a residence permit in Germany. As you stayed illegal now for more than 2 years, your situation is quite complicated. I would highly recommend you to get support in a migration counselling office, for instance. Those kind of services are free of charge and confidential - you don't need to worry that the social workers report you. If you are struggling in finding one in your area, please let us know as we are happy to support and to make some research. However, it will be the best to discuss your situation and your options individually with an expert.
Nevertheless, congratulations for the job offer. Maybe it can help indeed in the future.
Please don't hesitate to get back to us with any further questions.
All the best,