Can I sit up in bed?

I know I’m not suppose to lay on my back but what if I’m sitting at an angle is that okay? I need to work from home on my computer and it’s the only way that’s comfortable for me