You can apply in your own name, but it also depends on your position. If your position is research and development, and the patent applied for is related to work, it is a service invention, and you are not the subject. In terms of legal procedures, if you finally obtain a patent, if the company has objections, it can file a lawsuit claiming patent ownership.