No. You cannot kill someone just because he enters your house uninvited.
You have a right to self defence. If you are attacked you can fight back. Theoretically if you kill someone while defending yourself you will not be convicted. But in reality... a different story.
Meet this guy:
His name is Ivan Sinanović, and he is (was?) a priest. And a biker. And while he was a priest he supported one poor family with half of his salary.
In 2012. he was a parish priest in a small village in Croatia. The president of the village council did not like the priest, because the priest was planning to expand the old cemetary near the church and to offer burrial places at 1/3 of the price that the village council was charging at the "official" cemetary. The president of the village council was probably making some illegal side-money from the cemetary business.
After a night of heavy drinking, during which he claimed multiple times that he will take care of the priest once and for ever, the president of the village council who was "aggressive when drunk", as witnessed by one of his friends, went to the priest's house, broke the door with his leg, started shouting that he will kill the priest, and when the priest arrived, started violently hitting the priest. If I remember correctly, at the time, the priest's sister and nephew (niece?) were also staying with him in the house. So the priest started defending himself from the drunk, agressive guy, who broke into his house at the middle of the night. Being stronger and sober, he managed to throw the attacher to the ground. While falling down, the attacker hit his head bad, and died.
So, did the police/court acquit the priest from all charges and thank him for taking care of an aggressive guy? Nope. They sentenced him to 4.5 years.
So, if someone drunk breaks into your house in Croatia at the middle of the night, and starts hitting you and yelling that he will kill you, and you have a child in your house, be aware that you can get 4.5 years in prison if you defend yourself.