Yes. Your community college should be able to give you clear guidelines as to which course credits will transfer and which won’t, particularly if the successive institution is a state university. The process is called “articulation” for some reason and there should be info on the community college’s web site. If there isn’t, you can call the college and make sure which courses will be accepted. It is quite commonly done around here.