Can a german shepherd and a chihuahua be friends?

I have a chihuahua named Maya and I want to get me one of those large breed dogs. I thought about a german shepherd because I have always wanted one. We already have one picked out but I am still thinking about it. I am scared that the german shepherd, when it gets older and bigger if it will attack maya.I dont know what to do. Please help.