Unemployment question

Does anyone know if you have worked for a company for 2 years and then they fire you because of attendance related issues and then you find a new job in a call center and then you find out it's cold calling and sales so you leave can you still collect unemployment from your previous employer??