Carrying a gun in the trunk of an automobile has been held to be a violation of the law,  but the Commonwealth has to establish that the person had both the power of control over the weapon and the intention to exercise that control.
Carrying a gun in a vehicle has been ruled unlawful, but the government must show that the individual had mastery over the weapon and intended to exercise that authority.