Yes, you are right:)
maybe it is of some help if you add a geometric interpretation of this, so the nex time it is easier for you to find modulus or real/imaginary parts.
A complex number $z=x+iy$ it can be viewed as a point of the complex plane $\mathbb{C}$ which is isomorphic to $\mathbb{R}^2$. So for each complex number $z$ there is a unique point $(a,b) \in \mathbb{R}^2$ who represent the number. Usually we use the isomorphism $\varphi: \mathbb{C} \to \mathbb{R}^2$, $\varphi(z)=(x,y)$. So in fact the imaginary part can be viewed as the y-coordinate of the number and the real part represents the x-coordinate in the plane. With this representation the module is the Euclidean distance from the origin. Just to be exhaustive at this point is obvious to introduce the polar representation of a complex number which is in fact another isomorphism between $\mathbb{C}$ and $\mathbb{R}^2$, provided that the angle is in $[0,2\pi[$, which uses modulus and angle of a complex number to identify it univocally:)
summing up, checking what are the parts "involved with the i" is correct for finding the imaginary part. Remember that each part (imaginary and real) are REAL numbers (the map goes in the real plane)