Using inputted text in an "if" statement

Yes, you can do exactly that