No. It should not be possible to cancel/dismiss "ongoing" notifications on Android 13 and lower.
If it is still possible then it's probably some custom device manufacturer feature, which is not supported by the standard Android API accessed by Automate.
The block use the API to "cancel" the notification whether it's ongoing or not, but if it works/allows it is up to the system.