I’m a locksmith, and yes, you’ll need the Forescan app, an OBDII adapter and a windows machine to program the key yourself—I’d stay away from cheap programming machines you may find online, they can damage your truck computer.
If you get a key from eBay or Amazon, do try to find the ford OEM...