CRC brings a minimal OpenShift Container Platform cluster. Usually above error is because oc binary is not in the PATH. Run the:
crc oc-env
eval $(crc oc-env)