Yes, BUT this will be completely at the discretion of the school or more specifically the department you are looking to transfer the credits to. The best idea is to speak with the advisor for the program you want to attend to see if the credits are transferable. Most cases will be different so there is no yes or no answer for this type of question.
Often times graduate programs will require that a certain number of credits be taken at the school to which the degree will be issued.