No, it's not okay to work from a coffee shop for an entire day and only order a cup of coffee. If you're only going to be there an hour or two, this wouldn't be a big deal, but if you're going to work there for more than four hours, reconsider.