A BJT is not a current source. However, there are some circuits where a properly biased BJT can substitute for a current source. That is, a current source and a properly biased BJT will behave similarly in certain constrained contexts. They will NOT behave similarly in all contexts, because a current source is a source of power, while a BJT is not.
For example, in the schematics of operational amplifiers, one might see something like this

simulate this circuit – Schematic created using CircuitLab
The operational amplifier would not actually contain a current source, but would instead contain a properly biased transistor, like so.

simulate this circuit
where \$V_{bias}\$ is set by the voltage across a diode connected transistor with a known (or approximately known) current. That is, Q3 is an output driver in what is perhaps a multi-output current mirror.
So why can we use a transistor here in place of the current source in the original schematic? Because the function of both is to cause a some amount of current to flow from the emitters of Q1 and Q2 to ground. Since that is the only thing we expect from whatever component is placed there, and since both a current source and a BJT will give us that desired behavior, we can substitute a BJT for the current source in that circuit.
For a more detailed understanding of why the BJT will cause a certain amount of current to flow from the emitters of Q1 and Q2 to ground, it may help to consider the operation of a current mirror. Q3 is almost certainly biased by another transistor (or possibly a more complex circuit) and together Q3 and that other transistor or transistors form a current mirror.
Here is the simplest form of current mirror.

simulate this circuit
Some known or approximately known current is fed through Q1, and so a voltage is developed at the collector of Q1. That voltage is used to bias the base of Q2. If we assume that the current into the base of Q2 is negligible, and we assume that Q1 and Q2 are well matched, and we assume that the circuit is such that there is a voltage source of some kind that can supply current to the collector of Q2, then we can assume the current through Q2 has the same magnitude as the current through Q1. Because our assumptions are actually only approximations, and because transistors do not have perfectly flat \$I_C\$ vs \$V_{CE}\$ characteristics for a given \$V_{BE}\$, the current through the collector of Q2 will only approximately equal the current through the collector of Q1. But for many purposes, it is "good enough". Various additions to this simple current mirror can make it more accurate.
In summary, a BJT is not a current source, but in many circuits, a properly biased BJT can substitute for current source. Whether that substitution works depends on the circuit where the substitution is made. In some cases the substitution won't work. In many integrated circuits it does work.