I have a DynamoDB table, that has partition key: id and sort key as number timestamp (it will always be there).
The id will always be unique. Does it even make sense to have timestamp as sort key in such scenario? (and just use simple id as simple primary key?)
As already mentioned in a comment, having a timestamp as the sort key when the hash key is already unique provides no value.
I'll also mention that having a unique hash key means that you'll be limited to GetItem or Scan (of the full table). Unless you create some GSI's
Maybe you'll always know the ID and thus GetItem is all you need.
However, consider your other access patterns. You might be best served by picking a different hash key and including ID as (part of?) the sort key.
Since you mention timestamp, I'll point you to the Best practices for handling time series data in DynamoDB ; which actually uses multiple tables with different provisioned WCU/RCU. Probably overkill for most people, and possibly out of date given the availability of On-Demand Dynamo DB.