Hi Liveinjapan, I nearly said yes, but then I realized that your sentence used the word "cooking" and ended with "in beef fat". Because of these words, the only preposition you can use is "by". The roux of the so-called navy curry is made by cooking flour and curry powder in beef fat.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.