Yes! The sentence has a literal meaning (i.e. that you have really been burned) or - as you say - a figurative meaning that you have had a bad experience. In a figurative sense it's most often used to back up a sentence where you say you are not going to do something again because you had a bad time the first time round, e.g.
"I'm not going to get married again, I've been burned before"
"I'm not going to buy a xxx from yyy, I've been burned before"