It's a bit more subtle than that.
In Germany, crossing at a red light is very frowned upon. Many Germans even wait at a red pedestrian light in the middle of the night when there's zero traffic.
Crossing streets in places without pedestrian lights or designated crossings is very common, though, and I believe usually legal. (I certainly haven't heard of anybody being fined for it.)