Chihuahuas bite, but usually not without provocation.
Most all dogs will bite before they ever bark, so it’s often hard to tell when an animal is just curious or if aggression is involved. If you don’t want the dog to accidentally nip you for roughing up his bed or sniffing him inappropriately then sure, give him some space and let him know he’s had more than enough of your attention…