Yes, service packs and minor version differences actually don't usually matter as far as Replication compatibility is concerned. And with Transactional Replication, the requirement is that the Subscriber and Publisher be within two major versions of each other (in either direction), which the case you described is since they're both the same major version.
This is discussed in Replication backward compatibility:
A Subscriber to a transactional publication can be any version within two versions of the Publisher version. For example: a SQL Server 2012 (11.x) Publisher can have SQL Server 2014 (12.x) and SQL Server 2016 (13.x) Subscribers; and a SQL Server 2016 (13.x) Publisher can have SQL Server 2014 (12.x) and SQL Server 2012 (11.x) Subscribers.