Of course, it can. Both the cosine law and sine law apply to all triangles. Of course, you don't really need it. Just use the definitions or sine and cosine to find lengths or angles.
The cosine law says [itex]c^2= a^2+ b^2- 2ab cos(\theta)[/itex].
If [itex]\theta[/itex] is a right angle, its cosine is 0 so that just gives the Pythagorean theorem. If it is one of the other angles, we can rewrite it as [itex]a^2= b^2+ c^2- 2ac cos(\theta)[/itex] with "c" still the length of the hypotenuse. Dividing by [itex]c^2[/itex], that becomes [itex]sin^2(\theta)= cos^2(theta)+ 1- 2cos^2(\theta)[/itex] so that [itex]sin^2(\theta)- cos^2(\theta)= (1- cos^2(\theta))- cos^2(\theta)[/itex] which is obviously true.