We may compute the angular momentum for a rigid body rotating about an axis going through its center of mass in the same way.
Now we notice an important feature of rotations of rigid bodies. The angular moment will not be parallel to the angular velocity if the inertia tensor has off diagonal components.