Yes, you need to be signed in to the same Apple ID on all devices to use Text Message Forwarding.