If the D40 has a place blocked off its possible.
You need to look at the instrument cluster for both to see what is different.
Then look at the 2 sending units for size.
On the thousand series Fords the sender is too small but some have drilled and re tapped to use common temp gauges. Then its just mounting the gauge.
I am currently adding a after market tach Into ( same spot ) a 72 Chevy C20 with the deluxe instrument cluster.
I can buy a cluster w tack for 500-1000.00 but the higher ones has the vac gauge too.
The Main cluster is the same,
The plastic over the gauges is different, the main metal housing inside is different. the rear metal cover is different, the printed circuit is different.
Some of these differences can be modified to make work, some cant and you need the right part.
Of course you can hang a bracket and use aftermarket, or even a gauge pod like some of the 60's muscle cars that had gauges mounted on the hood or cowl.
Ds