If you are wanting full use of the rear cogs then you may have an issue if you only change out the 2x to 1x. Without knowing what your bike is and the other components I will only say it might work for you and it might not.
A new bike might be almost as inexpensive as replacing everything you might need to replace to have a correctly working 1x bike.