no, u cant coz
cosx/sinx = cot x and its integration is log|sinx| +c
and if u do individually then
integration of cosx is sinx
and integration of sinx is -cos x......
therefore overall is sinx/-cosx = -tanx
so u cant do denominator and numerator individually