No, being online is not necessary to receive WhatsApp calls. Calls will ring even if you are not actively using WhatsApp.