Serial1 on mega not working when power by adapter

Are the Gnds between the boards connected when powered by 12V?