Yes, that's the main purpose of using a router to connect two or more networks with each other.