No. The claim that Josh Peck lost weight by "going on a diet called bulimia" is false, and it is worth correcting plainly, because repeating it as a joke can cause real harm.
Bulimia is not a diet. It is a serious eating disorder involving cycles of bingeing and purging, and it carries genuine medical risks to the heart, teeth, throat and digestive system. Treating it as a shortcut — or as something to admire — pushes the idea that self-destruction is a reasonable method, which is exactly the message that keeps people from seeking help.
Public figures who change significantly in weight usually do it with professional support: a doctor, a dietitian, structured eating habits and consistent activity, often over a long stretch of time. It is rarely dramatic and almost never a single trick.
If any of this feels close to home for you or someone you know, a doctor or an eating disorder helpline is the right place to start.