Sure, Class B you need to squawk mode C.
Some places around the world have different requirements for other classes, but I dont know of anywhere that you dont need one for class B or A.
Nor, come to think of it, can I name anywhere that requires it for class G.
I dont understand why you would want to go flying without a transponder in the first place...