Is there a way to limit rotation when using IK?

Something like this:
8425098--1115124--upload_2022-9-8_15-17-19.png

As far as I know not and I ran into this requirement as well. Would certainly be handy.