Absolutely. The main difference between playing flamenco and classical guitar is the action. Flamenco guitars have much lower action to accommodate for percussive playing but classical players can easily adjust to that. I wouldn’t recommend buying a flamenco guitar if you’re a beginner classical guitarist but intermediate players onwards could definitely make the transition.