Does brute-forcing depend on the length of a password only?

If a password is +30 characters long but contains words from the dictionary, is it less secure than a 10-character password that is !@#$ #%$ ^%$ , for example?