We can use both tableau public and tableau desktop on the same machine there is no interaction between them. Tableau public is free software whereas tableau desktop is a licensed version once the license expire we cannot use the software anymore
If you want to learn more about it Tableau, then go through this Tableau Training for more insights.