Yes, you can connect your iPad to TS4’s USB-C or Thunderbolt port and use it as an external display for your Mac.
You may need to reboot your Mac and iPad if there is a timeout error.
For more information about Apple Sidecar, please visit https://support.apple.com/en-us/HT210380