Yes, you can send messages in Spanish using accented characters. Just type your message like you normally would in the text box, and you're good to go!
Most accented characters are considered special characters, so using them in a text may require more message credits. Learn more about how message credits work here.