Sweet potatoe vs yam for baby?

Alicia
I'm making homemade baby food. I went to get organic sweet potatoes but all they had were organic yams. Can I give this? I've read articles saying they're different.