In any proceeding under this chapter, whether original or subsidiary, the court may, in its discretion, award costs and expenses, or either, to either party, whether or not the marital relation has terminated. In any case wherein costs and expenses, or either, may be awarded hereunder to a party, they may be awarded to his or her counsel, or may be apportioned between them.
Mass. Gen. Laws ch. 208, § 38