I do bonsai for reg-vegging, but into appropriate size pots for the job, and I always transplant once rootbound.

Being an annual, you'd have to keep a religious lighting schedule, and it could take years to gradually downsize to that small of a container. I never tried hard-core bonsai techniques on cannabis though.