Amateur radio is mostly self policing.... There is a "sport" called "fox hunt" they will find you and they will.... probably do nothing unless you are being a jerk, but it is still far better to be licensed.
No code required for tech or general license... but I do think you have to have a current tech to get the general...