Yes! Shoulder length hair works well for a ponytail, but you may find that some pieces fall out when you do a high ponytail. Midi and low ponytails are excellent options for shoulder-length hair.
A high pony can be great for medium-length hair as long as you’re creating a messy or boho style where loose pieces fit the look.