You can do that...but you can't make money out of it so easily (if that's what you're thinking about...).
For instance:
You sell an option and receive the premium for 1000 (the bid) - than you exit and pay 1100 (the ask)
In this example you are -100$ right away since the ask is usually...