Yes. That's what I personally consider to be the long way though, and the amount of EV points that you get depends on the wild Pokemon that you face. Some Pokemon also give more EVs than others; there are some that give 1 EV point for a particular stat upon defeat (usually this is non-evolved Pokemon that are rather weak), there are some that give 2 EVs (usually evolved Pokemon or stronger base-level Pokemon) and there's the very rare Pokemon that you see in the wild that may give off 3 EVs in a particular stat (typically a very strong Pokemon, final evolved forms usually, or otherwise a Pokemon that's ridiculously powerful in a given stat).