is this a right way to terminate a drain line?

Please refer to the photo. It is in the basement. The branch line is first floor's bathroom drain pipe which has its own vent. Should I vent that vertical main line or just cap it like the photo shows?

Attached Files:

The photo is too washed out to see what you are referring to, but putting a plug in the end of a fitting IS the right way to terminate A generic drain line. BUT it may not be the way to terminate YOUR drain line, depending on other factors your photo and description may not tell us, such as WHY that fitting is there.