No, not really.
Because of the nature of project it is possible that some tasks contribute
to more than one milestone.
I think there are probably some workarounds. You could simply place all the
tasks associated with the milestone under a single summary task and then the
cost of that summary task would be the summarized cost.