Are 49cc pocket bikes illegal to ride on the road or sidewalk?

if its not registered for the street and has no lights, signals, brake lights then yes it is.