You are correct!
From our dictionary: pu•er•ile (pyOO'ur-il, -u-rīl", pyoor'il, -īl), —adj. 1. of or pertaining to a child or to childhood. 2. childishly foolish; immature or trivial: a puerile piece of writing.