Can we change op amp of a circuit
You are using the AD822 on a single supply with the negative power pin connected to 0 volts. This is not a problem but any signal has to be biased somewhere near halfway between positive supply rail and ground (0V) for correct operation. 

You are feeding in a logic square wave changing between 0V and 5V AND the output of the op-amp will try and produce a level of -10V when the input is 5V.

This would be impossible if the negative rail of the op-amp were 0V and the signal were inputted as suggested in the paragraph above.