yes it can... just be sure that if you are using a user defined class, that you have that class declared before you attempt to access the class in the session...
you may however want to look at the function serialize(), this will make your whatever into a string (an absolutely safe way to store that object anywhere), and the unserialize() function will make it back into an object, again the class must exist already when playing with these things...
read more here:
http://www.php.net/manual/en/function.serialize.php
http://www.php.net/manual/en/function.unserialize.php