Yes. Add \# and a number format after the merge field in your template. The format controls how the value, including its decimal places, appears in the generated document.

For example, with an Annual Revenue of 125000:

SyntaxOutput
{{Account.AnnualRevenue \# #,##0}}125,000
{{Account.AnnualRevenue \# $#,##0.00}}$125,000.00

Related: Currency format · Number culture · Percentage format