Was Puss in Boots in the first Shrek movie?

No, he appears first appears in the second Shrek film.