It depends on your intent. If you plan to publish or sell the book in any way, you may reference the characters but can't have them speak or act. If you're just writing for fun, then go ahead and enjoy yourself.