ok, so I want to buy a midi controller, I see most of them just connect via usb to the computer, do I need a midi interface?
will there be less latency if I run it through a soundcard(midi interface)
You don't say whether the MIDI controller is also a keyboard, and whether you want to 'play' the sounds.
However, it's fair to say that there is very little 'latency' involved with MIDI regardless of whether it's via USB or e.g. PCI.
As has been said above, the quality of the drivers does make a small difference.
Go for a controller that has it's own specific driver rather than using a generic Windows driver, assuming you're using Windows.
The one thing that does vary slightly with MIDI over USB is that it is subject to 'jitter'.
Jitter means that the performance is not completely consistent, e.g. sometimes 1 ms delay other times 1.2 ms etc.
Latency is of concern when the audio generated by the MIDI 'note on' is streamed from the computer out of the audio DAC (digital to audio converter).
Latency figures here are several orders of magnitude greater than MIDI latency.
Careful adjustment of buffer numbers and sizes is required to get best performance, and ASIO drivers are a must, again talking Windows.
Here PCI will typically win over USB, again with well written drivers.