Yes, you can differentiate trig functions by using the definition of derivatives. There are also many theorems based on the differentiation of trig function