Yes it is but for other triangles you can create right triangles to use them.
Explanation:
For Trigonometric functions to work you need a hypotenuse, which you can only get in right triangles.
When you are dealing with triangles other than right triangles, the solution is to draw a perpendicular line to create right triangles. For more information just visit the source below.
Source: Math-Prof