Dockerfile encryptable and executable?

Can a dockerfile be encrypted and still be executed to build the image?