No, alone via this way you cannot require a resident permit for the purpose of self-employment.
Can donating to nonprofits help an investor earn German residency?
I wish to help some institutions in Germany via donations and eventually relocate there. I’ve heard about German resident permits getting approved by applicants investing in for-profit businesses, but what about non-profits? Can I donate to a school, artistic group or charity to establish residency? What are the requirements?