Hmm, I haven’t done a VFR flight in a while but I remember getting a squawk code. But I definitely get one when using IFR.