The newer digital sewing machines let you set various parameters for the button hole, like stitch density and width. If you can run a milling machine or a lathe for sure you can do buttonholes. Now on the other hand if you want to hand sew perfect buttonholes, well, this guy Maurice Sedwell is a good teacher: