Let $M$ be a closed, connected and oriented surface that is immersed in the sphere $\mathbb{S}^3$. Let $K$ denote the Gauss curvature of $M$ (the product of the principal curvatures) and denote by $K_{sec}$ the sectional curvature of $\mathbb{S}^3$ restricted to the tangent planes of $M$. I want to apply Gauss-Bonnet's Theorem to $M$. Should I integrate $K_{sec}$? That is, the following formula is true? $$ \int_M K_{sec} \, \operatorname{d} \operatorname{vol}_M = 2 \pi \chi(M)$$
I suspect this is the case, because Gauss-Bonnet is intrinsic, whereas $K$ is extrinsic.