Let $G$ be a $p$-group, $H\subseteq G$ be a subgroup of $G$ such that $G' = H'$. Is it true that $c(G) = c(H)$, where $c(\cdot)$ denotes the nilpotency class of a group?