Correct. "Cowboys" is divided "cow/boys". This is another compound word. You usually divide between parts of compound words. You don't divide off the "s" because there is no vowel sound in a syllable that is only an "s".
This is another compound word. You usually divide between parts of compound words. You don't divide off the "s" because there is no vowel sound in a syllable that is only an "s".