It depends on how you treat this variable.
In your example, echo $content;
will not be harmfull, it will just show the harmfull code, without execute it.
The harmfull examples:
eval($content);
exec($content); // any System program execution function
//preg_relace with e modifier, this is deperecated
// and so on .....