Problem While Adding Encounter to Visit

Yes,Now It worked like this.First I create encounter for patient through form.When I start Visit for that patient and searched encounter it appeared.Is this way these encounter worked?