Will diazepam work if taken on a full stomach?

Yes. It will although all medications have a quicker onset and more marked effect if taken on an empty stomach. Think about the difference of drinking a glass of wine on an empty stomach versus having the same glass with a full meal- the effect of the wine (or buzz) is generally much less with food in the stomach.