No — if there are different characters somewhere before the end the strings.
Yes — if the strings are equal.
Here are bubble diagrams showing how this works with the strings "bit" and "bit" and for the strings "ape" and "apex".
How many characters does each bubble compare?