That's the general rule. The video below goes into a lot of detail but in a nutshell, notes should be grouped together by divisions of the bar no longer than a note length two rhythmic levels larger than the smallest note in the group.
So, for example, if you're in 4/4 and the smallest division is an eighth note, you would show the half note division, since that is two rhythmic values above the smallest division. In your example of rhythms where the smallest note value is a sixteenth note, you would show quarter notes, since that is two rhythmic values above a sixteenth note.
Thanks I'll have to check it out