No. As @ragingloli says, if the magnet is natural, the ball wouldn’t roll back down the tube. If it’s powered, the the system requires a constant feed of power and therefore is not ‘perpetual motion’.
There’s actually much better perpetual motion scams out there. There’s one at the Royal Society that is so good it’s stumped even some physicists. The secret behind how it works is a closely guarded secret…but the Society doesn’t actually claim that it isn’t a scam device. It’s just a REALLY clever scam device.
Some of the more famous are the wheels with curved spokes where the falling of balls along the spokes continuially pushes the wheel….but in reality the device had a battery hidden. There’s a bunch of them. Search on youtube. It’s an interesting topic.
But always remember that it can’t happen and if someone says it can, it’s almost certainly a trick. Energy MUST be getting added to the system. Just because someone outsmarted you or me, doesn’t mean they broke physics. And if they did, why haven’t they commercialized the power source?