Maybe, but imo there's an infinitely-recursive (up until hardware or wetware limits) nature of introspection to consciousness. I can reflect on reflecting on reflecting on reflecting etc etc, until I stack overflow. But on each level of reflection, I can do something useful wrt adjusting the processes that I am reflecting on.
I don't see why one couldn't write program to do something - a subroutine that called-itself and analyzed some of the contents on up the stack in some vaguely useful way. One can pretty easily write a program that approximating satisfies most vague descriptions of consciousness. It doesn't "feel" like "real consciousness" but that brings up other questions.