Maybe? We don't know about the other code. Most code I work with would be sticking this output in a db or email or something, so any larger piece can't be isolated, so is no longer a single unit.
It's about isolation from side affects, not how much code you can stick behind a single method call.