How to use correctly 只要?
Yes, it is acceptable.  

For example, 

只要有人在说话，就不要插嘴。
As long as someone is talking, do not intervene.

只要下雨，我们就不去了。
As long as it rains, we will not go.

只要客户不满意，我们就不会停止服务。
If customers are not satisfied, we will not stop the service.