No, it isn't right I'm afraid. Cooking onions will increase the carbs - they caramelise if you cook for long enough. The same can be said for most root veg as well, especially parsnips, carrots etc. As a low carber, I never eat onions - raw or cooked but you could use spring onions if you are...