Yes, Tree sparrows do visit gardens, though as the species is very localised and typically doesn’t travel very far, it will only be seen in areas where there is an established population – which is anyway always a rural area and not urban.