Yes, you can. That has nothing to do with needing an EIN. the IRS expects you to make a profit in 3 out of every five years.
A tax ID number is not required if you operate a sole proprietorship or an LLC with no employees, in which case you would simply use your own Social Security Number as a tax ID. But you must obtain an EIN if you are a sole proprietor who files pension or excise tax return.