Absolutely! Python's string manipulation capabilities allow you to handle anagrams of not only single words but also phrases or sentences. You can modify the provided methods to work with longer strings by considering spaces and punctuation.