Yes it can; and afaik it now can also provide charts and stuff.
For desktop, Dukascopy's Java API is free and most feature complete, easy to use, I have come across so far (have looked into IB, FastBrokers, LMAX, etc). FIX is a mess; though it was invented "for electronic trading", it was not invented for ...