Yes, you are right, it is possible, but not as simple as the “SD Card Copier” in accessories menu of Raspberry Pi OS with desktop (GUI).
Below is one CLI method I habe successfully used to clone a booted microSD card:
https://discussions.flightaware.com/t/how-i-created-a-4gb-backup-from-a-16gb-microsd-card/63632/17
