I am not a lawyer, but I don’t think this makes you an accomplice. I suspect you need to help in some way to be guilty, for example after the crime by providing an alibi.
My knowledge of prison (second-hand) is that it is not pleasant.
It shouldn’t just be about acquiring knowledge, but using it wisely.
If you do nothing too much, you will become unfit and unhealthy!