No, a Thunderbolt-to-HDMI cable won't work for this. HDMI carries a picture out of the MacBook Pro, but the 2020 iMac has no video input. Second Display sends the picture between the two Macs over a network link: a Thunderbolt or USB-C cable, or Ethernet.
Every wired link takes a port on the MacBook Pro, and Ethernet needs an adapter too. The Thunderbolt cable you use now gives the best picture: lossless, at the iMac's full resolution. To free a port, we recommend keeping the iMac on its own Thunderbolt port and moving your other accessories to a USB-C hub.