As long as they can comment well on your abilities and skills I think it's fine. People might say that it's bad to get a letter from an intro prof since intro classes tend to be large with less student-professor interaction but that's not always the norm, if the prof knows you well, go for it