If the community I like has a golf course, which is open to the public will it always be that way?

Maybe not. Many communities will minimize the cost of maintaining a course by allowing the public to play. In some cases, when the course has enough paid memberships to support itself, it will close to the public. Another item to consider, is that even though a golf course is running through the community, it may not be owned by the Home Owners Association (HOA).