The brigtness of of the star is determine by distance.Am i correct

if two stars are otherwise identical, the brightness is affect by distance.

But a near faint star will not appear as bright as a distant bright star. Some stars just shine more intensely than others.