Is it safe to own a Pomeranian in two story house?

I'm seriously considering buying a Pomeranian and I live in a two story house. Is it safe for small dogs go up and down stairs?