Absolutely. In the Messages app, pull down the main screen to reveal the search bar. Type in the keyword or phrase you're looking for, and the results will show all messages containing that text.