On a rule which uses that service, sure.
On a rule which uses "Any" in the service column, you need to have a service object for the port in question, it needs to be set to accept replies, and it needs to be set to "Match for Any". This is literally what the "Match for Any" box is for.
Also, minor correction to what I said earlier. There is a small range of ports (TCP 6000-6063, I think) which is not included when you use "Any" in the service column of a rule. The range was used for clear X11 connections in the past, and to allow ports within it, you need an explicit rule.