Yes, ur statement is True!!!
optimal and LRU page replacement algorithm follows the stack property. Therefore we used to call them stack algorithm.
stack property: It is a property which says that the number of pages present in main memory with m frames is a subset of the number of pages present in the main memory with m+1 frames for the same reference string.
It is mathematically proven(proof is very hectic and not required for GATE exam) that optimal and LRU follows the stack property and therefore we call them stack algorithm
FIFO does not follow stack property and we say that it suffers from Beldays Anomaly and So it is not a stack algorithm.