A coffee grinder is more essential than a coffee machine. Fresh whole bean coffee ground seconds before being used in a plunger, stovetop or drip filter will give you a fantastic result.
A grinder is absolutely essential if you are preparing espresso coffee.