Yes, the formula \boldsymbol applies to all types of triangles, including scalene, isosceles, and equilateral triangles.