Can I use procedures to make an infinite loop?

Yes