Can a god travel between planes and or dimensions in D&D?


Can gods freely travel between dimensions or planes of existence? I don’t think they can, or there would be chaos. But maybe a powerful god like Bahamut or an Overgod like AO could?