Some landlords allows their tenants to keep pets in the apartments, and others do not. Ask them in advance! It needs to be specified in the contract if the landlord does not want you to keep pets.