Deleting an app does not cancel the subscription. See these support articles for cancelling the subscription:
Manage your Apple Music membership on your iPhone, iPad, iPod touch, Mac, or PC - Apple Support
Get help with subscriptions not billed through Apple - Apple Support
Best,
GB