You should consider a key point :

Does the system deliver energy to the ambient ?

If so, perpetual motion is not possible

Otherwise it is possible
The motion of the electrons about the nucleus is an example of perpetuel motion