Yes; David did want to build the temple, but God forbade him.
Right. The man of war was not allowed to. But God was OK with the purchase of the threshing floor.