Yes, they can. It’s true that most species of ticks live outdoors, but soft ticks and brown dog ticks, for example, can live indoors where dogs are around. They live in rustic cabins and places where there are mice infestations or just a mouse family.
They can lay a lot of eggs and they are most active at night when they feed while their so-called prey is asleep. They can suck the blood of mice, dogs, and even humans. Because ticks like to lay their eggs in the soil, many of them do not live inside the house, but they can attach to your pets and that is how they enter your home.
If they find a host, they can remain in the house for a few days. Once they have finished feeding, they look for another host, but if they do not find it, they eventually leave the home.