Yes. Except that in the pentatonic scale, you only play two notes per string, while in the myxolydian mode (and in every other mode) you play 3 notes per string...
Note for classical players: actually, playing 3 notes per string is a 'rock' view. If you play classical guitar, you'll learn to play a combination of 3, 2, or 1 note per string, to avoid moving your hand laterally.