This is still the case in 5e.
The AoE section of XGE gives examples showing this applies to straight line AoE spells as well.
Provided your character casts at the intersecting point between squares, a 5’ wide bolt will cover half of the squares on either side and hit any targets in both...