Depends on the country.
Also, there is a fatal flaw to CBDC’s
“A currency is only accepted by the general population if it can be used for both legal and illegal transactions”
Forcing criminals to use alternative means to commit crimes ironically paves the way for alternative monetary instruments.