In theory, yes.It's really about how you set up your site.You would need to have some type of server-side authentication (and then a redirect when the subscription is expired).I would recommend against using Offline Caching in this case, since you want the subscription to be able to expire.I generally recommend something like WishList Member to create a subscription-based paywall.
Here's a course on using WishList Member with in5:https://academy.ajarproductions.com/p/create-a-membership-site-with-in5-wordpress-wishlist-member-basic