Do diopters measure nearsightedness?

Yes. Nearsighted eyeglass (or contact) correction will be denoted on the prescription as a (-) power and a number (e.g. -2.75) which would be a nearsighted person with a power of minus 2.75 diopters.