Ideally yes. However, desktop environments today tend to automatically remove a drive's device file whenever you unmount it from your file manager. This can be an issue since cfdisk relies on an accessible device file in order to format a drive properly.
To fix this issue, you can either run cfdisk even if your drive is still mounted or unmount it using the umount utility: sudo umount /media/$USER/your-device.