Thanks for posting your query on Microsoft Q&A.
Yes, An Azure resource inherits locks from its resource group when you apply a lock at a parent scope, all resources within that scope inherit the same lock. Even resources you add later inherit the lock from the parent. The most restrictive lock in the inheritance takes precedence.
You can find more details about this here : Lock inheritance
If you have any questions/concerns, let me know in the "comments" and I will be happy to investigate further.
If this helped, please 'Accept Answer' so that it can help others in the community.