It is not only Okay but may be necessary to meet code spacing.

The rating of the wall must be maintained, so fire safing to match the designation of the wall would come in to play.

Roger