If you review the Target Display Mode (TDM) article linked above your user name, you'll see the the Mac—your 2019 Macbook Pro in this case—sending the video signal to a TDM-supported iMac must be running no higher macOS the 10.15 "Catalina." Yours appears to have macOS 13.5 "Ventura."
So no.
Even were you running an older OS version on the Macbook Pro, the required thunderbolt cables and T-Bolt to Mini-Display port adapters can cost between US$60 and 90. For that, you can usually find a decent external on sale.
A free-standing external monitor has many advantages over any iMac running in Target Display Mode, such as.
- easier to set up
- uses less costly cabling
- more reliable
- more display options (some iMac cannot do extended desktop, only mirroring)
- lower power consumption
TDM is dead tech, existing only in memory by wishful thinking during COVID. Web "authors," devoid of income, editorial help, and basic research skills, started making up things that TDM could do. Touted as the "works-with-anything" cure-all, in reality Apple had already buried TDM before the world shut down in 2020.