Yes, you can in the US in Class D, E & G airspace according to 14 CFR 91.215. You will need to placard the transponder INOP, and make a note in the aircraft logbook. But, you must stay out of any Mode C Veils, and further than 30 miles from Class B airports.