The question and the answer are more subtle than that. The question asks about doing “work” literally as we understand it today, but the reply word Christ uses to reflect work means a manifestation of an inner desire or intention. Therefore to work the works of God you need to believe in his Son, whom he sent, Jesus Christ.
The Bible is clear that we’ll be judged by our works/actions and that only works/actions motivated by faith in Jesus Christ are acceptable to God. Take a look at Matthew 28:16-20 to learn the specifics of that work.