Did Jesus know he was the son of god his entire life?

Yes Jesus knows everything we can see he was te son of god from the start of the creation. We also see Jesus tell Judas this WHAT YOU DO DO QUICKLY.