Hello, kart240.
Thanks for reaching out to Apple Support Communities. We see you’re concerned about an app that you downloaded that installed a configuration profile as well. You’ve deleted the app and the profile, but you’re wondering if you’re safe.
How to delete an app that has a configuration profile on your iPhone, iPad, or iPod touch -- When you delete an app and its configuration profile, all of the accompanying data is also removed.
We'd recommend keeping your iPhone updated as that also keeps your iPhone safe, with help here: Update your iPhone, iPad, or iPod touch
Have a good day.