Technically, yes, but best practice is to stick with recognizable circles and squares as the widest group of possible users will understand and interact with QR codes presented in this manner.