Yes. One core raises an interrupt in the other core. There are then multiple scenarios for what you might want to do in that interrupt handler - probably the simplest of which is to use something like a queue or task notification to unblock a task. See here
for an example https://www.freertos.org/STM32H7_Dual_Core_AMP_RTOS_demo.html