Yes, Op amps work with DC as well as Alternating signals. They are constructed with 3 terminals, two for inputs and one for the output.