Expansion Joints are not intended to permit the fit-up of improper piping design.

While we don't know the size of your pump/pipe, I'd also hazard an assumption that such a displacement even in the operating case, could result in deleterious effects on the pump operation.