Yes, it is possible.
You just need to add the field's hide formula to the validation formula.
To make things a bit easier to read, I'm going to re-write your formula differently...
@If(
!@IsDocBeingSaved; @Success;
YOUR_HIDE_FORMULA_HERE; @Success;
OffSiteDataFormat != "";@Success;
@Failure("An agreement type is required."))