Is it possible to turn on and off a certain post processing effect by a script?

I need to turn my blur on and off on a certain part of my game, but I can’t find a way to do it.

Yes you can.
Get a reference of your post processing profile first from the camera to where the PostProcessingBehaviour script is attached.

public PostProcessingBehaviour ppb;

Then you can set it like this

ppb.profile.bloom.enabled = true;