It is obviously possible, we all do it all the time we just don't realize it. All that's required is realizing that your waking life is no more "real" than your dreaming life. You've just drawn an arbitrary line in the sand and called it "real."
Meditate regularly for only 6 months and this becomes apparent
meaning is subjective and immeasurable; words are just keys into maps of meaning that our brains create. meaning leaves the words when there no longer exists a being suited to interpret the word.
The point is that it's a meaningless question. Consciousness is an activity your brain engages in, sometimes.
If you could make something else to engage in such activity, it could be conscious, sometimes, too. (We grow those all the time. See "children".) If you made something that engaged in activity indistinguishable, at some level, from what your brain sometimes does, would it be you? Obviously not.
But people might treat it as if it were, and be satisfied with it as a substitute. E.g., if it changed your passwords, it might get away with stealing your money. But there are easier ways to make that happen. People have done those already.
Meditate regularly for only 6 months and this becomes apparent