Input and output data are not same features of lstm is possible?

Taking stock price prediction by LSTM for example, Can I output prices but input has no prices related features?

input features are basic like timestamps, stock volumes, stock id.
output is the stock price

I don’t know if that make sense in time-series prediction or not. Can anyone explain is that possible?