Basically, whatever the controller tells you to do....you do!!
If he clears you to fly the full STAR, thats what you do.
If he clears you from a 100 miles away direct to final approach fix...then thats what you do.
He can also vector you around, and tell you to join the STAR at a later point.