Can you pay someone for 40 hours even if there is not 40 hours of work? And these people would count towards FTE total?

Yes, keep in mind that from a government perspective the goal is to keep employees on payroll regardless of whether there is work available to them or not.