Can u do planks on your bed?

there's not a lot of space in my room and the only place wide enough for me to do the planks is on my bed
0