No, it's not perpetual. Like any machine, there are frictional and air drag losses.
In a grandfather clock, the purpose of the weights is to provide a force to supply enough "push" on each oscillation of its pendulum (as well as drive the hands), to offset or exceed those losses. It then swings in a constant arc length.