Lock an axis off on camera lag

RE: a 2d game:

Is there a way to lock the camera lag off so that the X position is always immediately updated but the Z position still allows the camera lag to work.

Thanks in advance.