Scrying allows you to see a place somewhere else:
You can see and hear a particular creature you choose that is on the same plane of existence as you. (...) Instead of targeting a creature, you can choose a location you have seen before as the target of this spell. (...) the spell creates an invisible sensor within 10 feet of the target. You can see and hear through the sensor as if you were there.
This spell instantly transports you and up to eight willing creatures of your choice that you can see within range, or a single object that you can see within range, to a destination you select. (...) The destination you choose must be known to you, and it must be on the same plane of existence as you.
How difficult it is to teleport there depends on your familiarity with the location. If you are "very familiar" with the location, then you have a 75% chance to land exactly there, and only a 5% chance for a damaging mishap. Very familiar is described as
"Very familiar" is a place you have been very often, a place you have carefully studied, or a place you can see when you cast the spell.
Assuming you are scrying on a location, can you then teleport there as if you were very familiar with the place?
(I am asking as I am not sure if you can see the other willing creatures, and at the same time see the place through scrying. The question is not about if the caster could spend a lot of time studying the place with scrying and become very familiar with it that way).