Can husband and wife offer namaz next to each other?

No always there should be there must be enough gap between to male and female even if they are mahram for each other. But woman should not be ahead of man while vice-versa is correct.