Hi, with transport we use different prepositions depending on if we can stand and walk or can only sit. For transport where we can stand and walk, we usually use on 'on a train, on a bus, on a ferry, on a boat'. When we have to sit, we use in 'in a car, in a helicopter'. Sometimes we change the preposition depending on the size of the transport 'in a boat' versus 'on a boat' would indicate boats of different sizes.
The phrase 'in the same boat' to me indicates a small boat (metaphorically). I disagree with Monica above, and for me the phrase has always been 'we're in the same boat' to mean 'we're in the same situation' - I am only familiar with Australian and British English though.