No, the potential energy is not defined if the force depends on the velocity or on the time.