Morally if you kept it quiet then you have to live with yourself.
You may/not know that once you have a permanant contract (fijo/indefinido), you will get lots of maternaty leave and paid while you are away. But the co cannot hire someone else in full time to do your job whilst you are off as they have to leave the job open for you. Also they will have to hire and pay a temp while you are away. (Social security payments by the co are crippling for any type of employee as they do have a good payout system if you are sick/need support for a while).
I would be surprized if you are being offered a fijo from day one (although I have heard of it).
Usually you get a temorada for 3 months, another 3 months and the co can even then go for antoher of 6 months before they have to offer you a full/permanant contract.