In short: Yes, play it at the same time as the dotted quarters it's next to. Yes, it's just to show that the B should be sustained to the end of the measure. Yes, it's written that way to make the different voices clear to the eye.