No, you can't use travel insurance to get your visa or residence permit, and you can't use it as your main form of health insurance if you live in Germany.
You can learn more about the differences between travel and expat health insurance policies here.