As long as it's the latter - inexperience - yes. But a lot of the time it's just the aptitude and that cannot be taught (easily). I've seen my fair share of experienced, nice people with less that good aptitude for the job. A year later being nice and teaching, I see marginal improvement at a huge cost. It's not worth it at least in startups. I've also seen many young devs with the right aptitude but no knowledge/experience and they've turned out to be assets within a short period of time.