The Thunderbolt ports on 24” M4 iMacs are actually multi-purpose USB-C ports that support USB 2/3, USB4, DisplayPort, and Thunderbolt. They adapt to use the appropriate protocols for whatever compatible devices you plug in.
I would strongly recommend getting a version of the M4 iMac with four Thunderbolt ports (the cheapest ones have only two, and make other compromises).
You can get powered USB-A hubs that give you four or more USB-A ports and that plug into a USB-C port (either directly, or with the aid of something like an Apple USB-C to USB adapter). They’re not very expensive. Make sure they have their own power supplies … unpowered USB hubs often had issues with connected devices trying to draw too much total power even before USB-C came along.
More elaborate USB-C hubs and Thunderbolt docks tend to have a mix of ports and card slots that includes some USB-A ports.
There are also adapters like the Apple USB-C to USB one that take up one USB-C port to give you one USB-A port.