It's pretty clear, i think, that the Buddha taught that sensual desires are an obstacle to liberation and peace. That would include lust in any form, whether "acted" upon or not.
From what i know of psychology certain desires and experiences are by nature quite powerful and for lack of a better word potentially "addictive"... Desires for food, sex and alcohol would all fit into that category.
That doesn't mean these desires are "wrong"... we need food. Also air and water. Some of the others though - especially sex and alcohol - can create difficulties. It may depend on the person though, on how much of an obstacle each desire will be. One person can have a glass of wine every Friday evening and be fine, another masterbates or has sexual experiences once a week and is fine.
You have to watch your own mind very carefully to judge that, to observe the effect these actions are having. But Buddha was pretty clear, I think, that if you want to go the full distance, do your best to drop these habits, they are obstacles on the path.
Just my 2 cents.