Yes.
From php.net :The __toString() method allows a class to decide how it will react when it is treated like a string.