top oven problem

Just replaced top and bottom (bake and broil) elements for top oven. Problem is (and was) that oven does not get to proper temperature. Both elements become warm, but shut down prior to reaching high temperature. I am wondering if this could be a bad thermostat.