Beams can be joined in principle. But the situation on site is everything, and the only way to know is for someone experienced to look at it.
Two beams that individually support half the length of a wall, may not collectively support the whole length.