Well, it may be ok as for now if you are still beggining to be observant. But Hallacha forbids to cook in Shabat. You can use electricity as far as it was switched on before Shabat, for example leave the lights on since Friday afternoon. As far as I know you can leave cooked meal on an electrical appliance or even a fire if it was lit before Shabat, just to keep the food hot. But you must take the food you need without removing the recipient from the heat and placing it elsewhere. Once the recipient was removed from the heat source and you have placed it elsewhere and you no longer hold it with your hands, you cannot take it to the heat again.