Scaling Gaussian Blur?

As a personal project, I’ve been rendering a spaceship/airplane thing. I use an ID Mask to blur the engine material to simulate a glow. When I render the object “flying” away from the camera, the amount of blurring stays constant (duh). Can I scale the blur based of the distance from the camera?

Could you remap a z-depth value?