Those who compiled Random House Dictionary think the verb is correctly used in your sentence. Definition No. 25 for come upon is: "to encounter, especially by chance".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.