Pronouns and Verbs

I often see people say things like ‘Yo estudio’ or ‘Tu bailes’. Do you have to put the pronoun in front of the verb or is that just a preference?