Sure you can.
It is illegal to hunt in unharvested cereal and oilseed crops, including sprouted winter wheat, alfalfa, clover and other grasses grown for seed, without the owner’s consent.
You don't dig the holes just kick the pocket gopher mounds flat with your foot. When a new mound appears you know that's the active hole then set the trap there. It's really easy to do.