I'm not sure exactly what "affordable" housing means.
Sometimes it means subsidies, sometimes it means a ghetto, sometimes both.
If done right though, this could be a great idea. FedGov has lots of unused land. Including unused military bases with existing barracks.